package ace.cmp.security.oauth2.resource.server.core.annotation;

import java.lang.annotation.*;
import org.springframework.security.access.prepost.PreAuthorize;

/**
 * @author caspar
 * @date 2023/3/23 15:09 权限必须已经认证
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@PreAuthorize("isAuthenticated()")
public @interface PreAuthorizeIsAuthenticated {}
